adTempus API
PreviousUpNext
IServiceControlTask::ServiceName Property

Gets or sets the name of the service to control.

C++
__property BSTR ServiceName;
C#
String ServiceName;
Visual Basic
Property ServiceName() As String

You must specify the actual service name, which may not be the same as the display name shown in the Services tool. 

The service name can be obtained from the Registry (key HKEY_LOCAL_MACHINESystemCurrentControlSetServices) or from ServiceInfo.ServiceName if you are using ServiceInfo objects.

adTempus API Reference version 3.0.0.0, revised 10/30/2008